package com.springcloud.demo.test.schedule;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;

/**
 * @author zhouyang
 * @Description
 * @date 2018/11/24
 */
public class Myjob1 implements Job{

    @Override
    public void execute(JobExecutionContext arg0) {
        JobDataMap dataMap = arg0.getJobDetail().getJobDataMap();
        String strData = dataMap.getString("strData");
        System.out.println(Thread.currentThread() +"任务1开始：" + strData);
        // TODO 业务
        System.out.println(Thread.currentThread() +"任务1结束：" + strData);
    }


}